<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<fieldset>
  <legend>月计划导入</legend>
  <form 
  target="pform"
  action="monthplanning/month-planning!importfileplan" 
  enctype="multipart/form-data" 
  method="post"
  onsubmit="return checkform()"
  >  
  <input name="actionDate" id="dpkor" readonly /><br/>
  <input type="file" id="file" name="upLoad" /><br/>
  <input type="submit"  />
</form>
</fieldset>

<iframe style="display:none" name="pform"></iframe>
<script type="text/javascript">
$("#dpkor").datepicker("option",$.datepicker.regional["zh-CN"]);
function checkform(){
	if($("#dpkor").val()=='' || $("#file").val()=='') {
		alert("请填写日期/选择文件内容!");
		return false;		
	}
	return true;
}
</script>